﻿using MediatR;
using SqlSugar;

namespace S_Gridding.Api.Application.Commands.Cellgrid
{
    public class CellgridUpdCommands : IRequest<int>
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        /// <summary> 
        /// 网格类别
        /// </summary>
        [SugarColumn(Length = 50)]
        public string? Grid_class { get; set; }
        /// <summary>
        /// 所属区域
        /// </summary>
        [SugarColumn(ColumnDescription = "所属区域")]
        public int Owning_region { get; set; }
        /// <summary>
        ///  网格编号
        /// </summary>
        [SugarColumn(Length = 50)]
        public string? Grid_number { get; set; }
        /// <summary>
        /// 网络名称
        /// </summary>
        [SugarColumn(Length = 50)]
        public string? Grid_name { get; set; }
        /// <summary>
        /// 所属层级
        /// </summary>
        [SugarColumn(Length = 50)]
        public string? Subordinate { get; set; }
        /// <summary>
        /// 网格面积
        /// </summary>
        [SugarColumn(Length = 50)]
        public string? Grid { get; set; }
        /// <summary>
        /// 绘制边界
        /// </summary>
        [SugarColumn(Length = 50)]
        public string? Boundary { get; set; }
        /// <summary>
        /// 删除标识
        /// </summary>
        [SugarColumn(IsNullable = false)]
        public bool IsDel { get; set; } = false;
    }
}
